import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface AccessResource extends Model {
	accessId: string;
	resourceId: string;
}

class AccessResourceService extends DataService<
	AccessResourceService,
	AccessResource
> {
	protected create(): AccessResourceService {
		return this.initTokenInstance('access-resource') as AccessResourceService;
	}
}

export const accessResourceService = new AccessResourceService();
